package iteratortest;

public class MenuItem extends MenuCompoment {
	
	String  name;
	String description;
	boolean vegetarian;
	double price;
	public MenuItem(String name, String description,boolean vegetarian, double price) {
		super();
		this.name = name;
		this.description = description;
		this.vegetarian = vegetarian;
		this.price = price;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public boolean isVegetarian() {
		return vegetarian;
	}
	public void setVegetarian(boolean vegetarian) {
		this.vegetarian = vegetarian;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public void print(){
		System.out.println(" "+getName());
		if(isVegetarian()){
			System.out.println("(v)");
		}
		System.out.println(","+getPrice());
		System.out.println("   --"+getDescription());
	}
	

}
